This example uses the addEventListener() method to attach a "pageshow" event to the window object.

Note: The pageshow event is not supported in Internet Explorer 10 and earlier versions.